

$(function () {
    $("body").on("change", "#cbp_addWinForm select[qucln='DJ_TYPE']", function () {
        var DJ_TYPE = $(this).val();
        var $LAIYUAN = $("#cbp_addWinForm input[qucln='LAIYUAN']");
        if(DJ_TYPE === 'YCFX') {
            $LAIYUAN.attr("areq", true);
            $LAIYUAN.attr("editype", 'dz_pubandcl_ysc');
            $($LAIYUAN).parent().prev().prepend('<span class="requireS">*</span>');
        } else {
            $LAIYUAN.attr("areq", false);
            $LAIYUAN.attr("editype", 'dz_pubandcl_all');
            $($LAIYUAN).parent().prev().find('span').remove();
        }
        $LAIYUAN.val('');
        $LAIYUAN.next().val('');
        loadColnData($LAIYUAN,true,'');
    });
});